var formData = {
  control_title: '评价及缺陷认定',
  system_content: [{
    name: '',
    content: ''
  }],
  //设计评价 缺陷标识等数据
  design_defect:{},
  //
  // // 执行评价
  execute_defect:{},

  info:{},

  auditing:{},


  // 样本为零
  samplerecord:{
    overall_scale:''
  },


  //访谈记录表
  // interviewsrecord: [
  //   {
  //     inre_id: "",
  //     be_interviews_personnel: "",
  //     be_interviews_position: "",
  //     be_interviews_job: "",
  //     interviews_time: "",
  //     interviews_address: "",
  //     interviews_personnel: "",
  //     record_personnel: "",
  //     interviews_content: "",
  //     interviews_record: "",
  //     numrow: ""
  //   }
  // ],
  //
  // //现场检查记录表
  // sceneinspectrecord: {
  //   scinre_id: "",
  //   inspect_time: "",
  //   inspect_address: "",
  //   inspect_personnel: "",
  //   inspect_record: "",
  //   numrow: ""
  // },

  //上期缺陷数据
  defectIdentification: 1,//缺陷标识
  sameDefect: 1,//上期缺陷是否相同

  // // //缺陷信息
  // defectrectification: {
  //   defect_impact_results: "",
  //   suggestions_improvement: "",
  //   defect_property:'1',
  //   section_id:[]//缺陷认定的 责任部门
  // }

}
var defectAuditRules = {
  /**
   * 设计评价的内容部分
   * */
  design_defect:{
    design_defect_identify: [
      {required: true, message: '设计评价缺陷标识必选', trigger: 'blur'}
    ],
    design_defect_prop: [
      {required: true, message: '设计评价扣分比例不能为空', trigger: 'blur'}
    ],
    design_defect_title: [
      {required: true, message: '设计评价内容不能为空', trigger: 'blur'}
    ],

  },
  /**
   * 执行评价部分
   * */
  execute_defect:{
    execute_defect_identify:[
      {required: true, message: '执行评价缺陷标识必选', trigger: 'blur'}
    ],
    execute_defect_prop:[
      {required: true, message: '执行评价扣分比例不能为空', trigger: 'blur'}
    ],
    execute_defect_title:[
      {required: true, message: '请认真填写执行评价结论', trigger: 'blur'}
    ]
  },

  samplerecord:{
    samplemethod_id:[
      {required: true, message: '请选择样本总量确定方法', trigger: 'blur'}
    ],
  },


  //样本为零
  sample0record:[
    {
      sample_0_reason:[
        {required: true, message: '请填写样本为零的原因', trigger: 'blur'}
      ],
      no_record_reason:[
        {required: true, message: '请填写未形成记录的原因', trigger: 'blur'}
      ]
    }
  ],


  // 现场检查记录表
  sceneinspectrecord:{
    // inspect_time: [
    //   {required: true, message: '请选择现场检查时间', trigger: 'blur'}
    // ],
    // inspect_address: [
    //   {required: true, message: '请输入检查地点', trigger: 'blur'}
    // ],
    // inspect_personnel: [
    //   {required: true, message: '请输入检查人员', trigger: 'blur'}
    // ],
    // inspect_record: [
    //   {required: true, message: '请认真输入检查记录', trigger: 'blur'}
    // ],
  },


  /*访谈记录表*/
  be_interviews_personnel: [
    {required: true, message: '请填入被访谈人员', trigger: 'blur'}
  ],
  be_interviews_position: [
    {required: true, message: '请填入被访谈人员职位', trigger: 'blur'}
  ],
  interviews_time: [
    {required: true, message: '请选择访谈时间', trigger: 'blur'}
  ],
  interviews_address: [
    {required: true, message: '请输入访谈地点', trigger: 'blur'}
  ],
  interviews_personnel: [
    {required: true, message: '请输入访谈人员', trigger: 'blur'}
  ],
  record_personnel: [
    {required: true, message: '请输入记录人员', trigger: 'blur'}
  ],
  interviews_content: [
    {required: true, message: '请认真输入访谈内容', trigger: 'blur'}
  ],
  interviews_record: [
    {required: true, message: '请认真输入访谈记录', trigger: 'blur'}
  ],

  // 缺陷类型认定
  performance_form: [
    {required: true, message: '请选择缺陷认定表现形式', trigger: 'blur'}
  ],
//
  identification_method: [
    {required: true, message: '请选择缺陷认定方式', trigger: 'blur'}
  ],
  defect_quota: [
    {required: true, message: '请选择指标', trigger: 'blur'}
  ],
  factor: [
    {required: true, message: '请选择因素', trigger: 'blur'}
  ],
  section_list:[
    {required: true, message: '请选择责任部门', trigger: 'blur'}
  ],
  defectrectification:{
    defect_impact_results:[
      {required: true, message: '请认真填写缺陷影响结果', trigger: 'blur'}
    ],
    suggestions_improvement:[
      {required: true, message: '请认真填写改进意见', trigger: 'blur'}
    ]
  }


}

export {defectAuditRules, formData}
